-- GENERATED SPELL FOR [Glasshide Petrifier] --


function spell0_5421(pUnit, Event) --@Petrify,n/a--
pUnit:FullCastSpellOnTarget(11020,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5421', 8257, 1)
end

function Sorts_5421(pUnit, Event)
local choix_sorts_5421 = math.random(0, 0)
if choix_sorts_5421 == 0 then
pUnit:RegisterEvent('spell0_5421', 1, 1)
end
end

function mob5421_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5421', math.random(1500, 3000), 1)
end

function mob5421_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5421_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5421_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5421, 1, 'mob5421_Action')
RegisterUnitEvent(5421, 2, 'mob5421_Leave')
RegisterUnitEvent(5421, 3, 'mob5421_Kill')
RegisterUnitEvent(5421, 4, 'mob5421_Die')
